Rename "write" functions to "writeTo".

Because it makes more sense.
Change readme.md to use writeTo.