Adjusted variable names. Corrected code. Added comment lines.