added function declarations in header file. Removed duplicate code. getMotion functions call individual motion axis functions.