v 0.3.1

* Extract adding docs to a tree to its own function, and expose it.