Updated inline docs for register matrix logic.