fixed compilation error GetFrequency
added logging to grid.init failing
added newline to #version line in shaders