got midpoint working
Merge branch 'master' of https://github.com/chrispiech/refactoredEncoder