Fixed some function and variable names and incremented the version number of the script.