Renamed variables
Added comments