Import cimdi, line_keys and metadata