added basic search functionality.  Pretty hacky but works for a proof of concept.
removed debugging.