Added functions code
Added tests
Added doctests, rectified default params and tests
PEP8 fixes
Rectified errors
Combined get_motion functionality
Removed whitespace
Removed Vector([]) initialization
Merge pull request #2453 from srjoglekar246/functions

Added get_motion_params function to mechanics core