add 'applySpecTemplate' function
style: minor tweaks
minor fixes
Merge branch 'spec-template' into development