Merge pull request #35 from mebigfatguy/develop

make sure magic bytes are read fully