Fix spelling errors and inconsistent docstrings.