made timer2 init function and documented