Bugfix, buffers and uniform block

Fixed stupid memory leak when printing time.
Fixed refresh rate
Buffer api in progress
Uniform block api in progress