Add csv writer
Add reporting functionality
Improve the reporting