modified utilities and merge_files scripts, mostly improving on has refs and such. still has issue where it repeats lines multiple times- embedded forloop is the problem. need to figure this out