reordered how the output was calulated to reuse groupbys.  Also, added a table of rank thresholds based off the rdp 11_2 named taxonomy table.