add constructor for Stream
modify error message
Merge pull request #21 from icoxfog417/feature/issue20

Feature for issue #20