Made main compatible with doxygen