Implemented query.maxRefs
Changed space indentions to tab indentions