fixed bash file and included csv output