Corrected a few typos

I found a typo in an error message by accident and felt that fixing just that one without looking for more would be lazy. I spell checked most of the code and docs but I'm sure there are additional typos I have overlooked.