Move CSV to a codec

Moving the CSV output to a codec for future use. 

Note: File currently does NOT use codecs, thus the CSV Output can't be removed (yet).