Added support for CSV output

Done.