Fixed bug with single hour resolution.
Bugfixes to clock. Has a debug mode if you run clock.py directly.