Continued implementation of collision tests

And spheres and collisionStructures. Also added them to the build file.