voting and sort by rating fixes
bug fixes
style changes
changes for sorting queue based on votes