added variable explanation.
corrected some comments