changed DocumentInfo from flat class to hash map