fixed some typos and removed `else` from check for main so script can be run interactively.
Merge pull request #14 from pbrady/typo

Typo fix.