Update HardwareLibrary.cpp

Motor class: dir =/= direction