AE: Remove all the debug outputs and also debug plots
AE: Refine the initial template veru roughly (no interpolation) and only histogram the first iteration to check that everything looks good.
AE: Add interpolation when refining the initial template
AE: Move the refinement to a separate function
AE: Refine the pulses that we fit to and refactor code so that we use a histogram for the pulse rather than the TPulseIsland
AE: Draw the individual uncorrected and corrected pulses properly
AE: Need to add the refinement factor here as well
AE: Change the transformation again so that it makes sense
AE: Only interpolate between samples for the first pulse
AE: Make refine_factor a module option