Improved the timer.c and updated the documentation