dtdphi dag fixes
This was entirely busted previously. Mostly minor changes. Feel free to argue for different h5 data storage, I was mainly trying to mimic the structure previously used but it's a little silly to use a group/dataset to store a single attribute. @leo.tsukada might also want a look.