Updated rule API documentation.