Added data.c and data.h

Some variables need to be global so i putted them in a single source
file for a cleaner code.