got instanced rendering working
1.Code cleanup, 2. moved the Enabling of the VertexAttribArray inside of the VAO.
added the functions which allow access to individual attribues and indices
added the ability to change what material the vertexbufferobject will use.
changed the render loop so that the vertexbufferobjectfactory does the rendering.