Export Statisitics in format csv

Add a button for extract statistics in csv file.