working timer module with simulation
code clean-up