Fixing build error when using post-increment operator.
Fixed typos in comments