Added script for fixing files

The options need to be adjusted and root_files should also be fixed, but it is a start.