Fix voting issues
This may fix issue #123 as well as fixing most deprecated methods.