Moved includes and global vars to header file
Starting to split up code