reformatted code, fixed portability issue in doc/Makefile.am