moved enums to e.*

code cleaning
refactoring
more work on the Texture object