add clean target to makefile
fix segfault when using incorrect search string
use correct search string