Added clear method to NamedChemicalFormula