Add documentation to API