improve avg rank
add ordering
add rules, fix table tag