fixed a bug in the floating point precision control that would sometimes mess up the derivation measurement for the TVector; implemented the twisted d-wave symmetry for the pairing term on the 2layer model