First (very) rough draft of api doc.