added comments for doxygen in output.c and output.h