Fix some typos in the documentation, tweak autogen.sh to the new code