added basic timer functions, and controllers