Events.c: Add DEBUG() for serial port output

Plus
reduced #ifdef/#endif nesting, increased code readbility