added documentation for client