remove a lot of extraneous files

removed a lot of extraneous files, but also rewrote the write_to_csv method and the underlying exportableCSV so as to use the same code paths and be much more DRY