Improved retrieveUniform function - untested. Attempted to implement some form of uniform binding.
Added exception handling to Matrix class"