spell checking and clean-up