Added missing return at search function
Merge pull request #2 from brunoduran/master

Missing return in function "search"