grapher nearly working, note output to XML working