Merge pull request #3 from craigburke/master

Fixing Cannot cast 'groovy.lang.IntRange' to class 'int' issue
had to tweak that
temporarily commenting out some dbeug printlns
Allowing for compound file extensions like tpl.html