Once you have the diet under control , which is your case, foamy urine usually means that you have been cheating or else that your system is being overwhelmed.
It is actually the candida coming out in great amount but it remains that suddenly it is there in great amount! So some of it is good and some of it is bad.
In order to cure candida we must get rid of the toxins candida feeds on, in the process of getting rid of them these highly oxidating agents are in circulation in your body and allow candida to overgrow.... so on the long run then this means you are healing, but on short term perspective it sometimes becomes a heavy die-off burden.
(antioxidants: vit C, E and A are important to help manage the toxins)
And for the undigested peanut - good descriptio n - I know exactly what you neam. But I do not know the answer, at some point I thought they were eggs of the rizhomic candida, but I have no proof of that and I did not investigate it any further.
P.S. If you have not been taking magnesium before, because mag is esssential to assimilate calcium, it is advisable to supplement in calcium as well!