added output.mode flag, and made the nodes and edges elements in the render data structure into hashes