procedural geometry stub and refactoring
clean up main function
some small tweaks
fixes to get latest opengl compiling
Merge commit '52dd42cc39c17376d14c7671e763b57842450f92' into sharpshooter

additional code for handling joystick input on windows