Program now uses optparse to parse command line args