Correctly retrieve compilation output and get files which are included
Added code to check that we only add unique header per database entry
Added option to keep all duplicates
Adjust copy file paths if something already exists there