not sure what im commiting, git just tells me i need to
somehow had merge conflicts
added a function to write header bytes
fixed merge conflicts