search functionality taken out of interface

The search function can now be accessed from main.py