Small changes started working on optimizing code

Visualizer also now loads correctly