Removed unused variables, added motion driver library for OS X.