improve the template doc