Minor fixes and csv generation
Question 5.12