Update WordGraph.scala

Adding comments to the graph object