Any more detail?
Take pictures of the process and anything that you think may be "fuzzy" when reassembling. Even when removing the engine from the frame.
We took Dita's engine out in Oct of last year. It went back in in April. My pictures saved my butt, cos there were a few wires that weren't intuitively matched.
The baggies is a good idea. That's what we did. Label the baggies, and label any wires you disconnect.
Most of all, don't rush this process. Take your time. If you get frustrated with something, step back, take a break, and consider starting up again later, or the next day. Same goes if you're tired. Even if you set a goal for the day, and are close to making it, consider that most mistakes are made when you're tired. Nothing worse than getting it buttoned up and finding that you have to go back in.
While you're in there, make sure anything you encounter is within tolerances with a
GOOD pair of calipers. We'd measured the camchain with a cheap pair of calipers, found it to be at the very end of the tolerance, and so bought a new one. When it arrived, the new one was the
exact same length as the old one. Measured with our newer, better calipers, the old chain was well within tolerance.
I have to ask though.... did your friend not ride the bike, or see it before buying it?? I'd think if it's spilling oil like you said, and the cases are all messed, it should have been obvious the bike was rubber side up at least once...