Corrected bugs, changed a bit the struture of the Texture class and some other classes in order for the code to compile