sounds to me like your battery is nearly dead , when turning over the engine on the starter not enough voltage to run the ignition and when it starts a lot of current trying to charge the battery so the bike cant run at idle. New battery should sort it out.