Add missing magic encoding comments
Change buffer to behave like a stream
Merge pull request #4 from dkubb/change-buffer-to-stream

Change buffer to behave like a stream