reorganized file layout, added tree template files