added equals() etc to NameAndValue