Typo fix.

Fixed some typos and removed `else` from check for `main` so script can more easily be run interactively.