Merge pull request #7 from soofatt/master

Add code to renew dictionary when full
changed way of catching EOF from -1 to throw
Add .travis.yml