API docs

Make the API reference from the sources, and check its inputs.