Added output directories to the .gitignore
Added a call to poll GLFW events in the main file so the window closing
event is caught.