added getParams() / fromParams() (for stateless search), cleaned up search(), added getter/setters for private variables