Patch for updates to headers

This update is a patch that will allow the program to work with the new
header system, without erasing the new information added. it does this
by taking the entire file into local memory and working with it there,
before pushing it to the file and saving.