updating package to run as a command line tool