So I went riding about a month ago and while warming the bike up it was idling for about 2 min and then hit the kill switch and made a weird noise then I went to start it and was rolling the engine over to get to tdc and it stopped. So I pulled the valve cover and found that the intake valve closes to the timing chain was stuck down and intake cam had jumped time. Got the bike home and pulled head off. No piston/valve contact. when I pulled the cams I found the bucket is broke. Got he bucket out of the head and removed the valve from head. Used a dry erase marker and marked the seat put light pressure on valve and just enough to disturbe the marker and it is sealing good. I was able to repair the head and install a new bucket. Installed head and put bike back together. Slowly kicked it about 20 times to get oil back up to the head. Fired bike up and it was idling really rough and rich. Let it run for about a min and then shut it off. Went out the next day to work on it and same thing. But after about 10-15 seconds of running it died and would not restart. Started looking around and found the intake temp sensor right above the throttle body in the air filter housing was not plugged in. Plugged it in and put a new plug in cause the old plug was so fuel fouled it had no spark. Bike starts and running super rich I get a small cloud of black smoke out the pipe. Similar to a 2 stroke smoke cloud when hitting the throttle. Will the intake temp sensor not being plugged in cause it to run like this? I know I have ran it long enough to set a code for the temp sensor. Now that it is plugged in will it clear itself after a ? Times starting and running or is this something that will need to be cleared with a computer?