deprecated TextEntry, fix minor coding style
add expected_votes field