Several changes: Created separate files for constant and global variables. Structured code to their own files in order to keep everything a bit tidier.