Refactored configuration code
Using intelligent guessing button for choosing filepaths