added a gloabls and header file. Starting to make globals as well as globalize the function headers to ensure all can call a function regardless of where it was declared.