query_for -> index_query, fixing authorizing, don't redefine class_attributes, removing unnecessary instance variables, doc fixes