Throw error if log is not empty.
Use a better error check.
Begin working with GL buffers.