added setup.py

Added the setup script and also made a few edits to try to get
readthedocs compile to work.