Updated examples to use v3.
Documentation of tree().
Separation of responsibilities.
Make makeTree() and makeList() DOM indepentant.