added commenting to Client.php