update readme
make the script work from the command line