Pass io.Writer to Marshal
Merge pull request #1 from makyo/pass-writer

Pass io.Writer to Marshal