added read/write testfiles, write seems to work