fix comment
add: write file method