Update base.rst

Updated some function descriptions, corrected a typo, added some missing returned types and changed some examples for better formating.
Corrected typo on base.rst
Correction on base.rst

Correted empty! function header
Merge pull request #6771 from brk00/patch-1

Update base.rst