added accurate timer implementation, added main window using openGL
control