Remove boilerplate code and copy template files