Small error fix
Adding functionality to export reports to csv