If a vote didn't have any votes, divide by 0 error. Fixed this issue and...

... reformatted the logic into methods