streamReadBits still give EOF unexpectedly. Code needs cleaning.
Merge pull request #2 from soofatt/master

streamReadBits still give EOF unexpectedly. Code needs cleaning.