Fixed some issues with the documentation.
Refactored the client tests.

References to ClientData's internal data was removed in favor of the
external interface, and the tests are now better commented.