Rewrite docs for revised API