Updated mass transfer function.
Also I think there is only one minor bug with it now and I think it has to do with the physics object being prematurely deleted.