Added a few comments to clarify client_main