Yes, I must admit that the current demo script is not very useful as an example.
Adding more practical examples that concentrate on certain features or tasks is a good idea. I will add some in the next days.
The script will probably be used in a dialogue system. By implementing this, some handy functions for editing the tree will probably be added, too.