Fixes for TE format plugin

Removed unused code, fixes in loading