Example BAGG
More informative error messages when reading file
bagg::makeBAGG(): check whether reading the AGG part was successful