Clean and document.
Clean and document. Minor bug fixes.