update doc and tool to generate narrative