It sounds like what you passed was mucoid plaque. If you look at photos of mucoid plaque it is very long and stringy and like you said, is shaped like the tract. Though after doing the P&B cleanse for only a few days it would normally take longer to expel but you were doing quite a few shakes per day which makes me think it was mucoid plaque...also the bloating caused could be due to starting the shakes at a high amount per day. I've read that it is better for the system to start on one shake per day and increase.
But nevertheless the plaque is obviously moving! To reduce the bloating i would lessen up on the shakes, just to give your digestive system a chance to calm down. Also remember to reload the digestive tract with probiotics to maintain healthy flora.
Hope this helps! :-)