GUI-334
converted to use csv package to generate csv output