Added new functions to math classes. Uniforms now support arrays. More informative error messages