Implemented available() method for input streams
Merge pull request #7 from pchel-/stream_available

Implemented available() method for input streams