Refactored the rom stuff, put the header in its own structure.