changed motor and sensor constructors to new spec;
use new C++11 enhancements in constructors