Fixed typos and minor scripting issues.