Add option parser to main