Create Template class
Fix method constructor name in RewriteDecoder and Template class
Fix attribute template in Template class
Add method magic get/set in Template class