Basic function definitions: motor, switch, tach

Did the basic function definitions for motor, switch, and tach. Needs to
be flushed out more and expanded.