Spelling corrections, added input valadation