fixed some typo
added code hint for record class
init variable to null instead empty string
added setQuery method for request service