Baby steps towards docs for the public API.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>