add the write stuff.
Merge pull request #12 from zachsitler/add-file-write

add the write stuff.