Added comments to code in graphs