Lots of fixes while docs were being edited.