Updated settings initialization, added error messages