eliminating errors in package check, updating documentation,
rename model="min" as average =FALSE