changed fixShaderFloat to work with pointers, added documentation