I agree with Gary, trouble shooting is very important process of elimination, cleaning carbs are one of the most important process of elimination, pilot jets, main jets, float adjustment, choke circuits, making sure the diaphragms are good etc... checking for good and constant spark, check all your wiring for shorts, ground wires, in my case i did all the process to find the problem, check compression, rotor, brushes, and when all of the above wasn't it, I remember some time ago that 5twins said if you go through all this process and it does not correct it, look to the electric part of the bike, i bought a TCI ignition box and finally problem solved.
I would try the TCI you bought, you can always send it back. I worked on mine for months trying to track this problem down, just want to share my results to help.