Commented System.out lines and refactored logging request to file into seperate method