Typos and minor changes to the script