renamed parser.js to xmlParser.js for clarity.
Removed a lot of non-buildGraph() code from buildGraph.js.