Fix autoconf and automake
Add docs for HEAD