changed createprog to take a variable amount of shaders
fixed an error.