main: add command line options

  also, load config from external path
add package.json