Bug 1

Fixed the tree parsing, and add basic check for missing nodes, attributes and value differences.