Small bugfix

Due to a recent change it was not possible anymore to add ports to objects. This is now fixed
Also added some commentary refering to port types.