motion.r2py

Cleaned code, added more comments to clarify code. Modified threshold/counting for more stable start/stopping