Fixes issue #2 use OptionParser for cmdline options