[IMP]planner: add some docstring and improved template.