Fixed the event creating issue in the scheduler.
Altered the variable names and added comments.
Merge pull request #30 from popcm/master

Fixed the event creating issue in the scheduler.