HM/TS: bugfix Schedule for period=0
TS/HM: InitialSchedule; Error logging; getState; setSchedule