Oh wait, I'm an idiot who misread the theory LOL. Your right, the division by mass inside the integration step isn't necessary. By removing it you get proper reaction of a V2=M1*2*V1 (or an object with twice the mass should have twice the velocity as another object).

Ok, well that fixes that. Now, back to the problem of the bouncing balls and sticks