fix majority bug, finish adam consensus, doc improvement