Added comments, changed range to xrange, and removed suplerflous variable and incrementer.