initial clock.erl (currently untested)
clock has been prelimarily debugged and appears to be working