modified main program to use shaders. also cleaned up a lot of stuff