corrected variable names and added comments