Removed used imports, formatting changes.
Corrected version information.
Removed unnecessary brackets, updates how checks are performed for textureslots.
Added check for textureslots that are used.