Fixed voting function (was adding 2 instead of 1). Worked on Dani's comments. Fixed and added tests.