fixed some bugs in collision tests
returned collision data object on collision