Fixes issue #2 use OptionParser for cmdline options
Merge pull request #3 from snex/issue_2

Fixes issue #2 use OptionParser for cmdline options