Update default conf file
Improve error handeling
Add logs