Fixed reporting to download directly the csv files without showing them in the html.
Commited pulled changes.