Updates docs to use getter methods.

Continuing from #1892