Modify template & add template edit code
Add perforce methods & test code