Fix typos and shadowed names in class docs