Search module completed

needs some cleaning up but fully functional