added comments to hb_server code