Created search model, cleaned up controller.