replaced spellcheck code-- it works on Linux now but is still buggy