Fixed a segmentation fault upon initializing. Fixed texture loading. Fixed some minor errors.