added model fields to support votes. fixed bugs in Amit school pilot.