Code tidy up

sweet!
in line 41, the search function call is using fixed parameters. 
If you change them, the function copes, but eventually this call will be made from remote admin settings when running on a Pi