Implement clock and alarm setting

Plus various cleanups, removal of serial output etc.