Making unifying changed to functions_migration.R
Moved copy of cuntions_migration to oldFiles. Making unifying/reducing changes to functions_migration.R to make the code cleaner/more readable/uniform.