Updates docs to use getter methods.

Continuing from #1892
yeah it is not a big deal at all