Prototype of  template scanner and parser
Added 'friendly' option to template formatter