update readme for writing to file or io