Started implementation of update_with_cycle_time

Added check for cycle_time.
Added unit test for update_with_cycle_time
Added implementation that passes unittest.
Added cycle time calculation to index.html