Reworked texture loading and stuff, cleaned.