Corrected typos in docstrings and exceptions