required writting a simple awk script to add the necessary border for MarkDeep.. haven't integrated the diagram generation into the file yet..
These need to be merged.