Bug Fix

Corrected a bug that was introduced by accident during the previous
commit, which caused the script to produce no output.

Also added code to the JSON interface to replace the user's raw input
with it's spelling-corrected version.