added comments to RPC server and utils