Added support for CSV output

The return type comment needs to be updated, since it now depends on the `data_format`. Should we list somewhere in the documentation what data formats are supported? Maybe it is already there but I didn't see it.