Dose fixes

Simulation with electron dose was being calculated incorrectly, this has been fixed.