Adding IDisposable with Dispose closing the stream.

This is regarding pull request #18.