major bug fixes.
close graph terminated app.
exception while saving png n duplication of legend.