bug fixes in the RomStructure constructor

and a few other tweaks.