Removed debug log
Added in proper sorting by votes
Fixed a few bugs and added some clarity