The auto decompression device is located in the exhaust cam.
It is spring loaded to it activates when the engine is shutting down. When the engine starts, a centrifugal weight is supposed to move outward and cause it to retract so it no longer holds the exhaust valve slightly open.
If the oil is cold the weight sometimes cannot move freely so the clacking continues.
When you hear this clacking just raise the engine speed a little and the weight will move to disengage the auto comp.
IMO, it is better to slightly rev the cold engine just enough to stop the clacking than it is to let it continue. After all, when it's clacking, it's holding the exhaust valve open.
The varying idle speed can be helped by doing as the others have suggested and changing the spark plug.
On my 2011 G5, slightly lowering the warm engine idle speed also seemed to help.
Don't lower it too much though. It should be idling at about 1000 rpm.
As the miles accumulated on my bike this "searching" seems to have gone away so if lowering the idle speed doesn't help just give it time.
I'm betting that after your bike has 8000+ miles on it like mine does it will idle nice and smoothly.