adding docstrings.