Made Texture errors better.
Cleaned up some code.