Reworked input channels with respect to returning events and buffers. Simplified logic and fixed bugs and reduced number of status polls.
Reworked record readers to properly support unions and events.