Final doc generation