Typos

Some docstring and exception message typos were corrected.