add template alter hook;update documentation;add template support for registration - v0.1.1