increased functionality, can now plot curves!