added example main.c from http://scentric.net/tutorial/ch-treeview.html