Add docstrings to functions.