Deleted some unnecessary console lines and added comments to the last line.  Also correct spelling of the word formula in line 9.