Documentation update for sam fencing with code samples

1. Improved documentation for sam fencing methods - to make it easier to read and follow.
2. Updated entities -> server_mode to server_modes to make more sense
Same.

    Usage::

        a code block