Merge pull request #80 from luciferous/writeto

Implement WriterTo