Moved init to constructor
Added a bit of logging
Made config private