Added structure to the Controller.h class. Defining the main loop functions.