fixing name for GLBuffer (instead of the BufferObject) and removing uneeded code