fix minor bugs
changes to schedule, subject now can have multiple periods