added extendTree and updated Docs for v0.5.1