add handlers to the startup file
finish TIM2
finish TIM1
finish priority scheduling
better code shape and add comments