Optimized the canRecognize/recognizeGesture logic.
Renamed a variable.
Merge branch 'bteschke-master'