Write out to csv file.
* Fix using same tag dict.
* Various regex fixes.