added demux; added getAllInputs() and getAllOutputs() for all components