allow for copying of nodes between documents
calling init parser once
Fixing test case segfault from calling CleanupParser too many times.