You are right, they were too wet when you put them in jars.
Whats left will be fine, I would air it out on a screen for a day then go into bags, keep it in the bags for three or 4 days, shake the bags twice a day to uncover whats on the bottom. That works for me when I get mold.