add writeFile and delete methods to io
a comment
added more obtain (async/sync switching) apis