Massive re-structuring of the training_two_tones main program. Now transformed into a class. The main function, when running program, now instantiates Training class.