Event detector updates

Updated comments for doxygen API generation.
Made function prototypes similar; e.g. some legacy prototypes using
varargin.