A weak battery will make the bike do all kinds of weird things. Go for a new battery first and if it still runs rough, without going into it too deep, let it idle and see if one cylinder is cooler than the others. If so, try shooting some carb cleaner in it a few times while it's running...