fixed bugs

1) now when using gaussian or lorentzian energy distributions, if the
generated energy is higher than 200 keV, the photon will be discarded
2) fixed an old bug that occurred when slit sizes were larger than the
source-slits distance