now writes materials appropriately
updated dates and modiciations
updated dates and modiciations