Complex sentence: Cox then told his friends what he did who then came to investigate the scene.
Split into simpler sentences: Cox then told his friends what he had done. They then went to investigate the scene.