added _hash to script params
rename maxDocTerms and maxTermsDoc to a hopefully more intuitive terms