Fixed coding style in event.c
Added support iterators in the queue