Modified legend of Plotscript and started implementing class for calculation error deviation