Fixed code style and added a tree view with an example item.