moved all glfw functions out of main.c, main.c is clear now.

time to make time_glfw.c and events_glfw.c