Add preliminary ddocs.
More ddocs.
Improve ddocs.