Big additions for writing MATERIAL and COMPOUND cards.