added parsing of results into CSV