Minor java cleanups, switch votes to use a VoteType enum

Looks like a good start.  

I made some changes based on good java practices.  If you don't want refactoring code I can understand and won't make any more pull requests.

~c