Export to CSV

New class i debug tools, export to csv.