Can someone explain what Renji did at the end? I didn't get it at all.

Looks like my theory from the last ep was somewhat correct, that Muramasa used the Zampakutou's instincts against their owners. But I was wrong on the Shinigami being able to summon their own power. That would have been cool. Then again, I don't get what Renji did.