Add metadata class and write metadata to xls file