register template
Merge pull request #2 from shiandy/master

Register template done ish need error checking