Updated Main class, added comments, project wide.