remove usage of template_config
fix some typos in doc