Added simple error handling
Added editable table
Avoid drawing the graph if it contains an error
Added color editing
created separate object for the legend table
Added simple support for parametric functions