Remove unneeded pipe and goroutine

Simply write directly to the Writer.
Merge pull request #7 from mccoyst/no-pipe

Remove unneeded pipe and goroutine