ExportMetadata method now in SearchMetadataExportReader. Cleaned up code. Added some comments.