Merge pull request #1 from soofatt/master

sup
streamReadBits still give EOF unexpectedly. Code needs cleaning.