Deactivated parts of the code for doPhotonStuff=True, made calculation of ListStart vectors more robust and added protections for NVrtx=0 case