added script line
added calculations and variables
added missing semicolons
added comments
corrected grammar
first draft