Changed how a few things work

Model class introduced - a mesh, a material and a shader, together. Is
not working properly.