updated some functions

first attempt at changing main class functions to glfw, all that's left
is switching from glutmainloop to glfw's loop before I can test run