Better attempt at writing Te, added IDL program to read binary files.