fixed errors, configurable root node
Merge pull request #3 from stratiator/master

fixed errors, configurable root node