Photon simulation for tracks working

Major milestone here.