- added logging incl. cli-switch
- some debug-statements to keep track of file handling