Flow utils and adding comments

Make the graph duplicate node names be
a post flatten function and add a bunch
of mostly useful comments to the various
utils functions/modules.

Change-Id: Iea7afc2f1b6e96a87da0aa2ca83dfbe4b76ee2db
Merge "Flow utils and adding comments"