Added more debug comments to visualizer.