removing obsolete code
new features

correct handling of the HT mode EM
new features

checking for the variation in the row before EM