Merge pull request #6 from pkkup/master

fixed external app dependencies, consolidated templates
add htk template fragments