add items array to all documents, update item classes to have type field