Update and simplify ASSIGNMAt write
Add fludag_all_materials to write all MATERIAL cards in one pass through Material object list