updates for pypi, added docstrings