worked on graph a bit, small changes to other code.