Added extra options to the template and fixed specs

Ciao Alessandro,

Please take a look at it, and see if you want to merge.

Added some a bunch of options to the template, added missing source/source_dir management and some linting.

Regards,
Javier