Added plotting code.
Fixed the graph.
Added graphing code.