Updated csv export header format
Added total to CSV export and started using blob for file generation