comments and refractoring

Added two methods to put the buildGraph into sub-methods.  Commented
those methods as well.