Split up files and added scheduler code
schedules