cleanings and improvements

- ADD: code cleanings and improvements
diagnostics

- ADD: logging to XML file
cleanings and improvements

- CHG: cleanup code
- ADD: target directory is shreddered before copy process starts