Doc code fixes