Adding docstrings to functions.