finalized function which checks if file is existing and asks user what to do with it.