WIP: more docs and some comments.