moved types and Election record definition to .hrl