Update HardwareLibrary.cpp

Motor class: dir =/= direction
Merge pull request #1 from hbrewitt/patch-1

Update HardwareLibrary.cpp