Fixed another breaking bug, changed the output files to .csv format, fixed empty lines before causes, outputs causes as final string.