sendEvent rewrite

better performance of sendEvent
Entropy library can now be disabled to save memory
removed the no longer needed availableEvent for loop