Adding docstrings.