Adding options including delimteres and line prefixes.
Catching sigint so we can make sure to flush/close the file before we quit.