Initialize the main templates

Begin to initialize the main templates for core codes