fix typo and remove redundant docstrings