Pieces of mucus plug?

I'm 37 weeks & 4 days pregnant. I'm 1cm dilated & 80% effaced as of yesterday. Doctor did a membrane sweep & today I've had tons of mucus-like discharge when I wipe. Is this pieces of my mucus plug? I've felt crampy all day, inconsistent contractions, and had a loose bowel movement earlier. Signs that labor is near?!