Add dotstorm CSV export and improve JSON export