added getName function

Generates names for nodes based on supplied arguments. The nodeTypes
dictionary needs filling up.