Still in progress...
Factored out directory and file processing. Added -A for applying changes if no overwrites happen.