Updated data exporting infrastructure.
Added console window pop up when exporting data.