added operations to the texture class
fixed the code so that it would compile
added fileExists operation
changed resource base class and added texture loading code