Corrected some typos and docstrings format