updates to doc template and node.loadString()
new version 1039