started to make the alarm function more robust. Next goal is sleep timer. best working version is in the file sourceCode/AlarmClock