Some documentation fixes suggested by scrutinizer