Added installation and usage notes.
Cleaned up and added docstrings.