Huge update to add better monitoring of errors in config file