adding metadata_check.r