Added json parsing to ClassEvent class. Added Scheduler class, restructured some code.