better handling of not being able to spell a word

plus some code linting