updated timer1 library
more efficient dmp