Started working on the api doc, fixed the text endpoint