Fixed many bugs regarding output values. phaseSym, totalEnery, and T are now correct values. orientation is still incorrect.