Allow tag name to be passed to createNode
Added support for range looping