You have parasites. They do not appear to be Tapeworms
so just do a good parasite
You may find that you are infested with several different types. You may only find that out as you do the parasite
Google Dr. Andreas Kalcker and look at his free 18 page pdf on parasites. Very helpful. He has a protocol but it involves mebendazole which you have to order from out of the country. You can order it on Ebay. His protocol also involves chlorine dioxide.
Order the book- Healing the Symptoms Known as Autism by Kerri Rivera
. It has Dr. Kalcker's protocol in detail. There is a connection between parasites
There are a number of protocols on this site.
You can also search the blogs.
It appears from the description of your symptoms that somehow you killed a bunch of them and they got stuck in your intestines. Every good protocol calls for enemas or colonics
or salt flushes. Also, some kind of purgative like caster oil.
Good luck. There is no quick fix for parasites.