Squashed some bugs and added debug switch

Fixed the bug on the text transition to and from 12 noon/midnight.

Also added a debug switch in preparation for the animation code and splash screen.