Recoded collisions.
Added java docs to CollisionUtil.