added some inline code comments in schedule.rb