Updated detect_sources documentation