added command line options and npm package stuff