1999 dodge ram 2500 5.9 360

Well the truck is running the way it was before the cat plugged up its breaking up and bucking at lower rpm.
It's throughing a check engine flash of a ten count at higher rpm.
I'm confused and im wondering if it could be the throttle positioning sensor? What are some of the symptoms or issues when one goes bad.
Thanks
Aaron