salt changes
modified csv write funtion to better handle end of lines within a field