Add correct header/footer for mode settings file.
Make PDF files load in hex mode for speed.