Add documentation for the core API