Made proxy-voting including some small tests of the algorithm