Adding config and refactored a method to show the full path of the document