split config to 2 doc, and added mako template.