adding some comments
declare a macro: MAXCHANNELS 13 /* Maximum number of channels*/