Changed visualization code to not use old JSON-file approach.
Fixed formatting errors