Spelling corrections; remove unused code.