Add method decode_tree()
Fix a typo