minor code/doc tidy