Refactored Main Controller, included cookieStore for local cache, updated search query to use contains() for better accuracy with wildcard