Cleaned graph, added documentation.