updated docstrings, finished main docstring