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). Refactor if you need but I don't think I made any major changes :P