reading election data from files instead of hardcoding. fixed some minor bugs