There were already some comments here, but they were missing a doxygen \file declaration, so the annotations weren't shown in the doxygen output. Also added some formatting for the code example and definition of MAIN macro.