fixed a bunch of errors, working on adding voting function