extract_meta function

Extract meta data