IO remastering

Input triggers input Available event.
Output changed to event driven.