added support for doxygen in autoconf
fixed compilation and crash on linux
improved doxygen documentation