fixed error in OpenGL plotting and eliminated unnecessary memory usage
Coding FORTRAN style - just for fun!