convert project to python and include setup.py for pip installation
update docs
tidy things up