Fix doctests and export list.