Updated some error messages and behaviours (no more segfault with a faulty config file)