Move additional variables to local globals
Add method to copy file
Overwrite original file in place
Merge branch 'feature/replace' into develop