Update template and sample config