added function to import/export data, but it does not work perfectly at
the moment...