Doc mode added. Improved C/C++ config.