Finished refactoring the gesture-recognition project.
Removed old spaghetti code.