added client side code doc