update readme
close files after write