Added some debugging tools, namely a simple file writer and a method to generate a graphviz file from a graph object.