why would you have to take the axle nuts off for any of this? Unless yamaha designed this completely f'd up compared to everything else they build, all you need to do is take off the 6 bolts that hold the sprocket to the sprocket hub, and then take off either the tire or whole hub to slip it off the axle, then reverse to re-assemble. Remember to bend a few of those metal tabs back over to keep the bolts from backing out, i've found that they can loosen up over time.
The first thing I would do before I started touching anything else would be loosening up the rear carrier and backing out the adjuster screws, to get as much slack in the chain as possible. You're going to need to re-adjust it for sure anyways because of the different sized sprockets you chose.