runtime: Document all public functions