Combined gather logs into one function and started work on external file to store config data