add boilerplate to THDClient and do some small editorial edits