changed averaging logic
better timer 1 setup = allows control of resolution