checking memory leaks

checking code to make it a little better handling variables, and freeing
memory
reduced number of objct[]

from 500 to 50.
I still dont like having this as a constant
some openGL rendering setup

brought in some opengl rendering setting so we don't only see wiremesh
organizing code

nothing much
Merge remote-tracking branch 'origin/slicing'