Hi Mac,
I just had a fast look at the code but if i understand it correctly you use the AttributeClass.CreateAtribute method to create an Attribute object. Get the content of the class (MofClass.gettContent) which corresponds to a Namespace object and use the Add method of the namespace object to append the new attribute.
Cheers,
Mark Schenk