Intersect bug fixed. Other minor changes.
Visualizer fixed and test added.