Refactor & fix %schedule_start%, %schedule_end%, %start% and %end%. Fixes #48.