Working version, but known bug in td_stats causing loss of an edge between creation of td and end of file
Resolving issue in td_stats.
Fixing order-dependency of visualization options in td_viz.