Add template as class parameter

Add the possibility to extend it and change the template
Update composer.json
Merge pull request #18 from ruifil/master

Add template as class parameter