bvh complete

Some bugs still exist but they are unrelated to the new bvh code