process_metadata_file function

Process metadata file to extract variable information