added averaging function
Merge branch 'master' of github.com:stoneburner/fishtankcontroller