changes to make sure the script runs correctly
updated instructions in the readme