Danger , you have great clear photos. On your photo called Rachet Gear Spring, you can clearly see the where the spur gear rachet teeth contact the ratchet teeth. This lools like a squiggly line but it clearly shows that the ratchet teeth are not shaped correctly. Yes they do operate, but if they were machined correctly, none of us would have slipping issues. ( except for your missing parts)
It is my opinion that the engagement surface should be 90 degrees from the shaft and each engagement surface should be parallel to each other.
By the way, my new KX500 was delivered with the KIPS shaft seal not pressed into its bore, I had an oil leak from day one. It was a very easy fix, but I felt I should not have had to do that. Love the bike anyway. John