I am writing, testing and using simulation programs for precise particle and spin tracking in storage rings. The main applications for these programs are the proposed proton electric dipole moment (pEDM) experiment and the muon g-2 experiment. Both experiments are precision experiments and the use similar experimental techniques. The simulations are needed to test new concepts and to design the pEDM-ring.