added _destroy...()_ functions to free Node and Attribute