Replaced the CDI with a new one I had around and it ran alot better at higher speeds. I fixed the chain rubbing completely. The bike runs good for a solid 15-20 mins then I let it cool down for 5 minutes before continuing. But normally at the end of my rides (30 mins total maybe) the bike starts misfiring, shaking back and forth and when I pull the clutch in the bike stalls. It starts right up again if I let the bike cool down. Also I noticed after coming off the throttle after being at high rpms, the engine runs kind of rough. Not really sure whats causing all of this...