add clean target
fix segfault when using incorrect search string
fix broken query string in url