When mine had a loose nut on the end of the crank, it made some nasty clattering noises at idle. However, that went away as soon as the RPM was increased and it was put under load. However, the nut can back off until it chews into the side case, so that can still be the problem. I also had a baffle in the muffler come loose years ago; it's been held in place with three sheet metal screws since. Just saying, there have been some good suggestions so far, methodically go through them. I'd start with the basics and the easy stuff - check timing, listen with a stethoscope, pull plugs and listen while it's spun over by hand, etc., to try to narrow it down before tearing things apart.