Add API docs and a lot of references.