add plotter, increased efeciency. Added plot.