Update src/feature_detection.cpp

clean up and some comments