Wrote docstrings to the motion app