added :time to sched-event to make scheduling more accurate
update comments
fixed problem with zero-time and restart