added attribthresh and topn constants and cli routines