fix bugs
resolve a TODO
do not emit diagram for instantiated class def
insert indents
fix a bug in parsing the option for diagram
workaround for "node" class
quote node names
reverse the direction of arrows