Changed matrix fns to the gl-matrix library (better docs)