featuredetecktion and matching functions with main and makefile