Recursion error and such is fixed

However, modelMatrix does not integrate into the rest of the code.