moved votes code to docs