edited curve() and plot() for integrator, so that they can plot multiple lines simultaneously