move GLFW initialization into init(), and change some variable names
include shader.h first