make sure magic bytes are read fully
Merge pull request #35 from mebigfatguy/develop

make sure magic bytes are read fully