Added implementation of states for cyclometer. Still need to reqrite transition functions for all states.