Changed class prefix to treedepth; removed (for now) addLevelType.
Renaming: using "depth" throughout for the distance to the root.