Reorganised the code to make it more manageable
Tidied up some minor glitches to do with startup
Added code to disable when data is being taken
Added method to save out histograms in a root file
Added functionality to save out histograms as a root file
Added placeholder for the trim calibration
Removed an off by one error where code might think a run has finished before it has