implemented leaves.js from lists.js, 1/2, now starting trees.js, to be appended.
fixed formatting issues