added a bunch of debug statements to graph generation, convenience script for viewing graphs - and improved graph