Code for reading in output and creating graphs.