Rewrote setInput() and setInputs()
The documentation of the methods has been written too.
Renamed __updateConnections() to _updateConnections() for uniformity