minor spelling corrections and error outputs