first Timer implementation and working race state machine, some
formatting