Update API documentation with clearer example