Removed temporary debug code
Fixed components not updating when deleted
Fixed wire positions when adding a wire to a rotated component