Modified the debian branch to have the templates

This means that you can patch the templates before
they are used.

Fixes #81
Improved error reporting when executing commands