reordered function arguments
changed check on grouped from is.logical to is.flag
fixed documentation bug in fq fields list