add simple docs.
cfg: convert to go types and actually return them.