Improvements to beam_energy_sim
Changed the way in which the integral of the scope trace ins calculated making this more stable now.