minor tweak
Add template support
Add example