fix docs and misc cleanup