use apache commons CLI package to parse command line options, address Issue #274
merge