Outputting to separate files. Eliminated csv lib