replaced ++ and -- with += 1 and -= 1
a couple ruby syntax fixes