Restored plotly data export with some minor improvements