More work on data lib, mostly documentation.