Using lines instead of rects. Found better values for domain.
Moved signal processing from Android/Java to Javascript. Got reasonably good rep-detection working for bicep curl.