fixed errors so should now be ready to test with importance() and plurality_value()