Add docstrings to the client library along with a couple minor changes