Fixed some typos, changed `x++` instances into `x += 1`.