add documentation for the client side