Only read the bytes needed

Fixes #3.
Merge branch 'master' of github.com:kevva/archive-type