Improve links from flag reference to the relevant section; and improve doc of RankN...