Adding details about category metadata. We now maintain a document ID => categories data structure as well.