generalized search vars & enabled user defined search with input and query method
removed whitespace, formatting