Reorganized the reading of substance reecord elements. Added two generic functions getStringValue() and getNumericValue()