Adding docstrings
Fixing typo