Created getSubtrees function
Updated docs