Made graphing functional

Graphing now works, although it is still required to put the function in
the source. This is going to be the case for quite some time. Next step
is integration.