added timer class

Lots of handlers, which means lots of threading.