added error for duplicate pids in metadata xml; text changes