Improved docstrings in client.
Added exceptions module.