Fixed spelling errors

I fixed some spelling errors in comments and docstrings.