Cleanup

* reformatted code (only whitespace changes)
* fixed spec description
* made ScheduleEvent#set_ends_at simpler by adding a #duration method