Edited classes, esp. motor

Motor class changed to have single direction (for use with MOSFET) and
other classes made a bit prettier