A program to generate doc