renamed local variable, make code easier to read. Added some comments.