Added comments to explain how the code works
Little code cleanup
Now can connect an unlimited number of signals