Added get_query and get_vars methods

Also cleared class vars identation and added comments for the new
methods