Create results class for saving json files. Move leg vote query to separate program.