fixed templates, added pillar doc