solved problem with the create vao funtion (it was trying to get the size of a pointer array)
updated the log class to handle new lines and count number of lines outputed