Added more docstrings and corrected lint errors.
Fixed a bug where moveTo() did not work exactly right on Python 2. Made unit tests work under Python 2.