add template and source files