I have programed a part of val_root, function to check if the root object is well formatted or not. Two classes were added:error and warning