adds docstrings.