functions into one for node type and one for value type. Define and export constants for both nodes and values.