Refactoring main.cpp separating the code into functions.  I added initial windowing support through GLUT but it doesnt work yet
Make sure I got all the files