Rewriting MotionDevice class.
Fix typo.