struct working! read chunksize correctly

chunksize is now read and written down to the datafile