update datagen to insert metadata docs