Implemented VertexArray and IndexArray among other fixes