changed template builder to start building items from 1 to avoid spec node type.
finished docs.
added output generator constructor wrapper.
test 2 more complex: insert a sub-template