Made the vertex array object factory constant. This is so that the purpose of the factory is much easier to understand

Added the possibility to attach any type of data format.