very slight cleanup of timer block including hacked TIM2 timer. cleaned up main