Fix documentation errors and warnings