added gui (seems to need glfw 2.7, not beta 3.0)