fixed some spelling errors in the file comment
changed a variable to have a better description
removed an unused variable