added 'stop' member to cpp motor