API: document processing methods with new APIdoc
Use new APIdoc decorators to document API methods. Docstrings now contain only the function's overview.