Pushed main.c closer to an improved implementation.
Fixed segfault in primitive_init due to an argument swap in glGenBuffers()