added safty net and debug msgs at sim::addLink
reimplemented getClassName - pure virtual
added bool return value to removeLink