added an n_photons option to the config
(#401)
various fixes to make play nice, but now not working in a more serious way, will consult
(#401)