convert code to look at total distance rather than small time slice
added some more makefile features
fix bug where registers guesture if touch frame is one tick
Added readme and GPLv2 header to make this public ready