Removed loading of config and moved most code out of construct

To this time, constructor held code that tried to create the log file and open it.
Moved this piece of code into two methods. One creates together the full path and checks
if the dir exists. The other creates the file and opens it.
Removed old config file
Use treshold from provided parameter