REFACTORING: Spelling corrections and better documentation.