Added a visualizer (with test main), and removed garbage.