added CopyTemplates. Moved C4996 warning to properties sheet