spell checking and other improvements