doc fixes, misc cleanup