adapted to new module check on addLink
reformated
added guimodelobserver
improved updatePorts
fixed port deletion