Added basic plotter functions. Has bugs.