Moved the sanity check into its own function, which allows us to add more without getting too messy
Trying to see how much of the main loop can be modularised and moved up to TVPulseFinder. Also moved some TSetupData variables to be private members so we don't have to keep on getting them
Added functions for testing against the start and stop conditions