Added a data_logger which writes data grabbed by the gui update loop to a netCDF file.