Patch 1

changed all "i++" into "++i", as proposed by nfkd