add some more comments to the main module: graph.js