Switched static vars to pre-processor definitions

Using pre-processor #define statements rather than static variables is a better use of memory, since the compile goes in and replaces uses of the variables rather than taking up space in virtual memory.