added iterator methods to TemplateVec for accessing the name id map
replaced some pointers with references
changed access to name-information for geo tree models