closed #39. fixed history plot.
changed plot stuff