Renamed variables.
Added comments.