Read document into map