[wip] documentation and logging.