Made scale and center member variables of diagram, minor changes