Added class ClientException and updated documentation