Fully working wordclock functionality with simulator, needs commenting and tidying up, but seems to work