hacked logical timer 2 until we can find out why counter is not resetting upon input capture
removed extraneous library