Update wordFrequencyDiagram.java

Updated comments