added test for intersection, corrected intersection math
cleanup