Split out comparsion of magic, version, and type
Compare the header to the magic constant in const.go
Use a switch statement to handle the document type
Skip the forwards compatability header data