switched to switch statement for main timer, as it is easier to maintain. Renamed some variables to be more descriptive