removed concept of builder states
added template node type
changed templates from linked list to template node