Standardized creation of input and output channels in InputGate and OutputGate. Removed linear contains check in InputGate for channels.