added finite photons to cpu code, need to test
prelim fixes, passing old tests