Improve the addNodes function.

Add a new version of the addNodes function. It has a list of array keys for special purposes (comment, value, children). It is possible to add comments.