Display Warning when Template Name is empty

Also clean-up some debug code.
Merge pull request #4 from IQSS/master

new code