cleaned up the code for the VertexBufferObject class.