Adding docstrings, other minor changes