modified the spellcheck2.py file to fit the more abstracted version with multiple functions instead of a big mess