properly generate csv
add percentages
fix failing tests