update docs for generate_template