Tac - Created a Singleton and Re-aligned Code

mainData.m = Singleton