I had a bad engine rattle and discoverd what seemd to be a loose flywheel. Bob suggested I pull down the back end to check whic I did and I found the rivetts that attach the ring gear to the fly wheel were worn and ther was a lot of play between the the two
.
It's all back together now and nice and quiet - if that's possible for one of these bikes.
So if you have a bad engine rattle which is worse at idle (clangity clangity clang) and decreases when the revs go up to say 3K, to be on the safe side, turn the engine OFF, remove the rubber peep cap on the side of the engine where you check your timing, get a screw driver and stick it in to the ring gear cog and wiggle it up and down and make sure there is no play. You'll know if it's not right beleive me it'll make the same rattling sound as when the motor is running
Hope this never happens to you. For me it was about a 10 hour job