TSV exporter. Some cleanup.