Added some comments. Minor const, int->GLint type changes, etc.