add function to remove directory trees, move all data to root folder. each candidates are separated still. log files are kept in subfolders.