Voting implementation

core voting functionality working.