Update and rename glhello.c to glmain.c

Changed some for loops to allow visual studio compile