add write file in last line and modify readme