better error recording and output of example XML config file added