Editor now changes function definition

Don't know if you want this merged, I just added a couple global vars and now the editor changes are reflected in both the large graphs, the preview graph, and the convolution sum (if applicable). It might be a bit messy so refactor if you think it is :P