Docstring for function
Docstrings and typo fixes