set up a data_t type

Gather global variables in a data_t type.