extract tpl
add sample usage
update gruntfiles