added threeJS visualizer and other necessary changes