fixes for spell checker and sentence parser