Moved header data structs and magic words to its own header