Part way through moving filling of doc fields from a struct, from bursa
code.