Added docstrings, updated readme.