Added the script correct_complex_sources

This works like a charm.