Added function to compute mean tree diameter
Fixed typos in documentation