better to clear the timer2 flag in the startup code not in the user code
some comment improvements