Update spelling_corrector.py

Function comments are added according to Sphinx