Added component.ports. Indexing it returns the appropriate input's value, setting an index sets the approprate output