Massive re-structuring of the Training class. Now gVariables inside Training class.