ENH: annotateEvents function
DOC: sccan decoding in a function