Refactored voting and added to comments.