made prompt more flexible with templates, fixed both the vote and topPairs templates