Working option parser using option preprocessing and getOpt
Revised to use new option parser