Small fixes in extending.rst