Replace filenames with relative names
Add template file