fix typo
added docstrings