Resolves #22, improved docs and adding sphinx docs.