Fix spelling errors

Fix a few spelling errors in comments and error messages.