the reaching into the pockets and the removal of the wallet and the look into the wallet are all beyond the actions allowed under Terry.
the situation was limited to the pat down and only that if there was articulable suspicion there was a possibility there was not only a crime afoot but that the OP did possibly possess a weapon.
Obviously we do not have the cops input on this and I can think of of scenarios that would lead to allowing what happened but that would be speculation at this point.

