Update genplate function doc