Sounds like you have problems, not enough octane, too much ignition advance, or plug heat range, lean condition. The grey sludge mentioned is not good. Loss of power is probably a partial seizure of the piston, it needs to come apart. Detonation heard over the pipe, is bad, can melt a piston before you can even hear it.
desertR