Added exporting history tree to .tgf (Trivial Graph Format)